<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class Transaction{    
    
    public static function beginTransaction(){        
        global $wpdb;        
        @mysql_query("BEGIN", $wpdb->dbh);
    }

    public static function rollbackTransaction(){
        global $wpdb;
        @mysql_query("ROLLBACK", $wpdb->dbh);
    }

    public static function commitTransaction(){
        global $wpdb;
        @mysql_query("COMMIT", $wpdb->dbh);
    }

}

?>
